#!/bin/bash

cd /opt/
wget http://jjbig.jb51.net:8080/201704/tools/jdk-linux-x64.tar.gz && tar -xzvf jdk-linux-x64.tar.gz
mv jdk1.8.0_131 jdk1.8 && cd jdk1.8
path=`pwd`
echo "export JAVA_HOME=${path}
export PATH=$PATH:$JAVA_HOME/bin" >> /etc/profile
source /etc/profile
